Skip to main content

sound

Type

function

Summary

Returns the name of the audio clip or sound file that is currently playing.

Syntax

the sound
sound()

Description

Use the sound function to synchronize other actions with sounds.

On desktop the sound function returns 'done' if no audio clip is playing. If an audio clip is playing the name of the audio clip is returned.

On iOS the sound function returns 'done' if there is no sound currently playing. If a sound is currently being played its filename is returned.

Sounds played with the beep command do not affect the value returned by the sound function.

Examples

the sound
wait until the sound is done

property: soundChannel

command: start, beep

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

mobile

Thank you for your feedback!

Was this page helpful?